package com.hanbang.maige.mode.javabean.quanzi;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者　　: 李坤
 * 创建时间:2016/10/31　18:33
 * 邮箱　　：496546144@qq.com
 * <p>
 * 功能介绍：
 */

public class QuanZiQuanXianData implements Parcelable {

    private int key;
    private String title;

    private boolean isSelect;
    private String detaile;


    public String getDetaile() {
        return detaile;
    }

    public void setDetaile(String detaile) {
        this.detaile = detaile;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.key);
        dest.writeString(this.title);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
        dest.writeString(this.detaile);
    }

    public QuanZiQuanXianData() {
    }

    protected QuanZiQuanXianData(Parcel in) {
        this.key = in.readInt();
        this.title = in.readString();
        this.isSelect = in.readByte() != 0;
        this.detaile = in.readString();
    }

    public static final Parcelable.Creator<QuanZiQuanXianData> CREATOR = new Parcelable.Creator<QuanZiQuanXianData>() {
        @Override
        public QuanZiQuanXianData createFromParcel(Parcel source) {
            return new QuanZiQuanXianData(source);
        }

        @Override
        public QuanZiQuanXianData[] newArray(int size) {
            return new QuanZiQuanXianData[size];
        }
    };
}
